var AV = require('leanengine');
var async = require('async');
var AddrM = require('../models/address');

module.exports = {

    listAddress:function(req, res, next){
        var uid = req.AV.user.id;
        AddrM.list().then(function(obj){
            res.json(obj);
        }).catch(function(err){
            logger.error(err);
            res.json(err);
        });
    }
};